//
//  JSTDocListViewModel.swift
//  JSTech
//
//  Created by 高得华 on 2020/10/9.
//  Copyright © 2020 华&梅. All rights reserved.
//

import UIKit

/// Word的列表
class JSTDocListViewModel: MDHCommonViewModel {
    
    override init(services: MDHViewModelServices, params: [AnyHashable : Any]) {
        super.init(services: services, params: params)
    }
    
    override func initialize() {
        super.initialize()
        self.title = "Word"
        
        ///个人所得税
        let item11 = MDHCommonItemViewModel.init(title: "个人所得税")
        item11.operation = {
            [weak self] in
            if let weakSelf = self {
                let vc = MDHSwiftHeader.viewConteoller(name: "JSTPIncomeTaxViewController")
                weakSelf.services.push(vc, animated: true)
            }
        }
        
        ///银行贷款
        let item12 = MDHCommonItemViewModel.init(title: "银行贷款")
        item12.operation = {
            [weak self] in
            if let weakSelf = self {
                
            }
        }
        
        
        let group1 = MDHCommonGroupViewModel()
        group1.itemViewModels = [item11, item12]
        group1.footerHeight = 0.00001
        self.dataSource = [group1]
    }
}
